package com.guang.sharding.mapper;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 订单实现层
 * @author jianzh5
 * @date 2019/10/15 17:05
 */
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {
    @Resource
    OrderMapper orderMapper;

    @Override
    public Order selectById(Long id){
        return orderMapper.selectById(id);
    }
    @Override
    public List<Order> selectAll(){
        return orderMapper.selectAll();
    }
}
